c0589fa7dffb600977153a5bf1009e3c7c99ee88,platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorView.java,EditorView,getLineHeight,#,359

Before Change


  public int getLineHeight() {
    synchronized (myLock) {
      if (myLineHeight < 0) {
        EditorColorsScheme colorsScheme = myEditor.getColorsScheme();
        FontMetrics fm = myEditor.getContentComponent().getFontMetrics(colorsScheme.getFont(EditorFontType.PLAIN));
        int fontMetricsHeight = FontLayoutService.getInstance().getHeight(fm);
        myLineHeight = (int)(fontMetricsHeight * (myEditor.isOneLineMode() ? 1 : colorsScheme.getLineSpacing()));
        if (myLineHeight <= 0) {
          myLineHeight = fontMetricsHeight;

After Change


  public int getLineHeight() {
    synchronized (myLock) {
      if (myLineHeight < 0) {
        FontMetrics fm = myEditor.getContentComponent().getFontMetrics(myEditor.getColorsScheme().getFont(EditorFontType.PLAIN));
        int fontMetricsHeight = FontLayoutService.getInstance().getHeight(fm);
        myLineHeight = (int)Math.ceil(fontMetricsHeight * getVerticalScalingFactor());
      }
      return myLineHeight;